package effective_java.design_pattern.decorator;

import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * 配料类 抽象装饰
 *
 * @author Verlet
 * @date 2023-09-06 01:19
 */
@Getter
@EqualsAndHashCode(callSuper = false)
public abstract class Garnish extends FastFood{
    private final FastFood fastFood;

    public Garnish(float price, String desc, FastFood fastFood) {
        super(price, desc);
        this.fastFood = fastFood;
    }
}
